package constants;

/**
 * Created by admin on 2017/8/18.
 */
public class HandlerConstant {

    public static final int VERIFICATION_TOKEN_SUCCESS = 10000;
    public static final int INIT_TIME_SUCCESS = 10001;
    public static final int OPEN_DOOR = 10002;
    public static final int CLOSE_DOOR = 10003;
    public static final int SURE = 10004;
    public static final int RETURN_BUTTON = 10005;
    public static final int NO_OPERATION = 10006;
    public static final int READRFID_SUCCESS = 10007;
    public static final int FINISH_NETWORK = 10008;
    public static final int TAKEANDRETURN_REFRESH = 11100; //有rfid 查不到物品
    public static final int TAKEANDRETURN_ERROR = 11101; // 无rfid



    //service中收到mainacvitity的消息
    public static final int CLOSE_DOOR_TAKEOUT = 10009;
    public static final int CLOSE_DOOR_CHECK = 10010;
    public static final int CLOSE_DOOR_RETURN = 10011;
    public static final int BEGIN_INVENTORY = 10012;
    public static final int TAKE_OUT = 10013;
    public static final int RETURN = 10014;
    public static final int CHECK = 10015;
    public static final int CHECK_RETURN = 10016;


    public static final int LOG_AUTH = 10017;

    public static final int EXIT_APP = 10018;

    public static final int HEART = 10019;

    public static final int END_INVENTORY = 10020;

//    public static final int UNLOCK_CLICK = 10020;

    public static final int FLASH_ON = 10021;

    public static final int FLASH_OFF = 10022;

    public static final int FLASH_OFF_ALL = 10023;

    public static final int RELEASE_MEDIAPLAYER = 10024;


    //验收的时候,更新完成,用于发送handler消息,更新医院数据库
    public static final int CHECK_FINISH = 10025;
    //点击注册按钮,发送handler消息,请求医院数据库,判断科室是否正确
    public static final int REGISTER_FINISH = 10026;
    public static final int HAS_OFFICE = 10027;
    public static final int NO_OFFICE = 10028;
    public static final int HAS_NAME = 10029;
    public static final int NO_NAME = 10030;

    public static final int CONNECT_SUCCESS = 10031;

    //收到客户端的心跳时候,发送此消息
    public static final int RECEIVE_CLIENT_HEART = 10032;

    public static final int GET_TOKEN_FAILED = 10033;

    //锁住一些其他按钮的点击事件
    public static final int LOCK_CLICK = 10034;

    //锁住一些其他按钮的点击事件
    public static final int CHECK_SURE = 10035;

    //盘点全部柜子
    public static final int INVENTORY_COMPLETE = 10036;

    //收到客户端1的心跳时候,发送此消息
    public static final int RECEIVE_CLIENT_HEART_ONE = 10037;
    //收到客户端2的心跳时候,发送此消息
    public static final int RECEIVE_CLIENT_HEART_SECOND = 10038;
    //收到客户端3的心跳时候,发送此消息
    public static final int RECEIVE_CLIENT_HEART_THIRD = 10039;
    //收到客户端4的心跳时候,发送此消息
    public static final int RECEIVE_CLIENT_HEART_FOUR = 10040;
    //收到客户端5的心跳时候,发送此消息
    public static final int RECEIVE_CLIENT_HEART_FIVE = 10041;

    //停止屏保的计时(注册页面填写信息时)
//    public static final int STOP_TIME = 10042;
    //开始屏保的计时(注册页面填写信息时)
//    public static final int START_TIME = 10043;
    //注册页面,模糊查询
    public static final int SEARCH_OFFICE = 10044;

    //注册页面,模糊查询,返回的结果
    public static final int SEARCH_OFFICE_RESULT = 10045;

    //串口重发
    public static final int SERIAL_PORT_REPEAT = 10046;
    //扫描完成
    public static final int SCAN_COMPLETE = 10047;
    //扫描完成返回错误
    public static final int SCAN_COMPLETE_ERROR = 10048;
    // RFID 异常
    public static final int SERIALPORT_ERROR = 100481;
    // 单片机 分包
    public static final int SERIALPORT_SUBPACKAGE = 100482;
    // RFID 总数
    public static final int RFID_SUM = 100483;
    //设置RFID
    public static final int SET_RFID = 10049;

    //开始柜子编号
    public static final int BEGIN_SCM_NUMBER = 10050;

    //取消柜子编号
    public static final int NO_BEGIN_SCM_NUMBER = 100501;

    //柜子还未进行编号时,发射出去,进行提示
    public static final int NO_SCM_NUMBER = 10051;
    //在选择柜子的页面时,对柜子进行轮询,已确定,是否可以连接
    public static final int ROLL = 10052;
    //获取单片机设置值的消息
    public static final int GET_CABINET_SET = 10053;
    //获取单片机设置值成功的消息
    public static final int GET_CABINET_SET_SUCCESS = 10054;
    //设置单片机成功的消息
    public static final int SET_CABINET_SUCCESS = 10055;

    //轮询单片机时,单片机回应答帧时,代表轮询成功
    public static final int ROLL_SUCCESS = 10056;

    //柜子编码的时候,关门时发送的消息
    public static final int SCM_NUMBER_CLOSE_DOOR = 10057;

    //点击登录的时候,若长时间为登录,关闭虹膜
    public static final int IRIS_UNLOGIN_TIME = 10058;

    //点击验收界面的返回,再次进行验收
    public static final int CHECK_AGAIN = 10059;
    //sqlite操作完成
    public static final int OPERATE_SQL_SUCCESS = 10060;

    //注册页面,选择注册方式时,向MainActivity发送此消息,切换fragment
    public static final int REGISTER_MODE = 10061;

    //指纹注册
    public static final int FINGERPRINT_REGISTER_FIRST = 10062;//3C3R模式,第一次输入指纹
    public static final int FINGERPRINT_REGISTER_SECOND = 10063;//3C3R模式,第二次输入指纹
    public static final int FINGERPRINT_REGISTER_THIRD = 10064;//3C3R模式,第三次输入指纹
    public static final int FINGERPRINT_REGISTER_FIRST_RETURN = 10065;//3C3R模式,模组第一次返回
    public static final int FINGERPRINT_REGISTER_SECOND_RETURN = 10066;//3C3R模式,模组第二次返回
    public static final int FINGERPRINT_REGISTER_THIRD_RETURN = 10067;//3C3R模式,模组第三次返回
    public static final int FINGERPRINT_REGISTER_ERROR = 10068;//注册过程中错误
    public static final int FINGERPRINT_VERIFICATION = 10069;//验证指纹
    public static final int FINGERPRINT_VERIFICATION_SUCCESS= 10070;//验证指纹成功
    public static final int FINGERPRINT_VERIFICATION_TIMEOUT= 10071;//指纹输入超时
    public static final int FINGERPRINT_VERIFICATION_WITHOUT_USER= 10072;//找不到用户

    public static final int RESET= 10073;

    public static final int GET_FINGERPRINT_FEATURE= 10074;//获取用户特征值
    public static final int FINGERPRINT_FEATURE_SUCCESS= 10075;//获取用户特征值成功

    public static final int DELETE_FINGERPRINT_USER= 10076;//删除指纹用户
    public static final int DELETE_FINGERPRINT_USER_SUCCESS= 10077;//删除指纹用户成功
    public static final int DELETE_FINGERPRINT_USER_FAIL= 10078;//删除指纹用户失败

    public static final int TRANSFER_FINGERPRINT_FEATURE= 10079;//下传指纹特征值
    public static final int TRANSFER_FINGERPRINT_FEATURE_SUCCESS= 10080;//下传指纹特征值

    public static final int RETURN_CATALOG_REGISTER_FRAGMENT= 10081;//注册成功之后,返回到CatalogRegisterFragment


    //指纹命令的执行结果
    public static final int ACK_SUCCESS = 10082;//执行成功
    public static final int ACK_FAIL = 10083;//执行失败
    public static final int ACK_FULL = 10084;//数据库满
    public static final int ACK_NOUSER = 10085;//没有这个用户
    public static final int ACK_USER_EXIST= 10086;//用户已存在
    public static final int ACK_TIMEOUT = 10087;//图像采集超时
    public static final int ACK_BREAK = 10088;//终止当前命令
    public static final int ACK_IMAGEFIAL = 10089;//图像不合格

    public static final int CHANGE_IRIS = 10090;//修改视网膜
    public static final int CHANGE_FINGERPRINT = 10091;//修改指纹
    public static final int CHANGE_SUCCESS= 10092;//修改成功

    public static final int FINGERPRINT_UNLOGIN_TIME = 10093;

    public static final int CANCLE_FINGERPRINT_COMMAND = 10094;//取消命令
    public static final int FINGERPRINT_VERIFICATION_FAIL= 10095;//验证指纹失败

    public static final int NETWORK_WIFI= 10096;//有wifi
    public static final int NETWORK_MOBILE= 10097;//有移动网络
    public static final int NETWORK_NONE= 10098;//无网络
    public static final int NETWORK_CONNECT= 10099;//有网络（无论是何种网络）
    public static final int NETWORK_ETHERNET= 10100;
    public static final int NETWORK_REFRESH= 10101;//刷新网络


    public static final int REFRESH_NET= 10101;//刷新网络

    public static final int REGISTER_ROLE= 10102;//注册的角色
    public static final int REGISTER_TYPE= 10103;//注册的类型（虹膜或者指纹）
    public static final int IRIS_REGISTER= 10104;//虹膜注册
    public static final int FINGERPRINT_REGISTER= 10105;//指纹注册
    public static final int REGISTER_SUCCESS= 10106;//注册成功
    public static final int REGISTER_FAILURE= 10108;//注册失败
    public static final int REGISTER_SUCCESS_FRAGMENT_SURE= 10107;//注册成功页面点击确定
    public static final int REGISTER_FAILURE_FRAGMENT_SURE= 10109;//注册失败页面点击确定
    public static final int REGISTER_BACK= 10110;//注册页面 几个返回按钮


    public static final int OPEN_DOOR_REMIND_TIME_OUT= 10110;//注册页面 几个返回按钮


    public static final int TEST= 11000;//获取用户特征值成功


    public static final int ACTION_UP = 11111; // 鼠标点击
    public static final int IRIS_LOGIN_SUCCESS = 11112 ;// 虹膜登录成功
    public static final int FINGER_LOGIN_SUCCESS = 11113 ; // 指纹登录成功
    public static final int REFRESH = 11114;  // 管理页面禁用 刷新ui
    public static final int STORAGEWARNING_MODIFY = 11115; // 库存预警修改 通知主页面刷新红点数据
    public static final int RETURNHINT_MODIFY = 11116; // 未归提示修改 通知主页面刷新红点数据
    public static final int ERROR_MODIFY = 11117; // 近期提醒修改 通知主页面刷新红点数据
    public static final int CLOSE = 88888;  // 退出
    public static final int RED_COUNT = 88889; // 开关门刷新红点


    public static final int IRIS_LOGIN_ERROR = 88890;   // 用户虹膜登录被禁用
    public static final int FINGER_LOGIN_ERROR = 88891; //用户指纹登录被禁用
    public static final int LOADING_FINISH = 88892;  // 登录完成
    public static final int LOG_SORT_FINISH = 88893;  // 排序完成

    public static final int INVENTORY_TIME_OUT = 10055;  // 盘点超时
    public static final int FINGER_PRINT_TIME_OUT = 10056;  // 指纹登录超时
    public static final int IRIS_NO_ENABLE = 10057;  // 虹膜登录 用户被禁用
    public static final int NET_ERROR = 10058;  // 断网
    public static final int IRIS_ENTER_LOADING = 10059;  // 虹膜登录
    public static final int IRIS_LOGIN_NO_USER = 88894; // 用户虹膜登录用户不纯在
    public static final int FINGER_LOGIN_NO_USER = 88895; //用户指纹登录用户不纯在

    public static final int NO_OPERATION_EXIT = 88896; // 协和医院 长时间误操作退出登录


    public static final int FUZZY_SEARCH = 88897; // 模糊搜索

    public static final int IRIS_LOGIN_ERROR_AGIN = 88898;   // 用户虹膜登录失败
    public static final int FINGER_LOGIN_ERROR_AGIN = 88899; //用户指纹登录失败
    public static final int FUZZY_LOGIN_FIINISH = 88900; // 点击搜索 统计接口获取完 开始模糊搜索
    public static final int COUNT_EXPORT_FIINISH = 88901; //用户指纹登录失败
    public static final int COMBO_SET_REFRESH = 88902 ; // 套餐修改、新增后 刷新页面
}
